﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_vehicle.Domain
{
    /// <summary>
    /// 保养记录
    /// </summary>
    [Table("Maintenance")]
    public class Maintenance:Audit
    {
        /// <summary>
        /// 保养记录ID
        /// </summary>
        [Key]
        public int MaintenanceId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        /// 
        [StringLength(50)]
        public string? MaintenanceTitle { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        /// 
        [StringLength(50)]
        public string? LicenNumber { get; set; }
      
        /// <summary>
        /// 保养金额
        /// </summary>
        public decimal? MaintenanceMoney { get; set; }

        /// <summary>
        /// 保养负责人
        /// </summary>
        /// 
        [StringLength(50)]
        public string? Head { get; set; }

        /// <summary>
        /// 当前里程数
        /// </summary>
        public decimal? Mileage { get; set; }

        /// <summary>
        /// 上次保养日期
        /// </summary>
        public DateTime? MaintenanceDate { get; set; }

        /// <summary>
        /// 上次保养里程数
        /// </summary>
        public decimal? MaintenanceMileage { get; set; }

        /// <summary>
        /// 当前保养日期
        /// </summary>
        public DateTime? MaintenanceDateNow { get; set; }

        /// <summary>
        /// 保养项目
        /// </summary>
        /// 
        [StringLength(150)]
        public string? Project { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [StringLength(150)]
        public string? Remark { get; set; }
    }
}
